package com.hunan.api.catv.service.impl.system;

import com.hunan.api.catv.dao.BaseDao;
import com.hunan.api.catv.dao.SystemAuthDao;
import com.hunan.api.catv.entity.po.SystemAuth;
import com.hunan.api.catv.entity.vo.SystemAuthVo;
import com.hunan.api.catv.service.impl.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service
public class SystemAuthService extends CommonService<SystemAuth, SystemAuthVo, Integer> {

    @Autowired
    public SystemAuthDao systemAuthDao;

    @Override
    public BaseDao<SystemAuth, SystemAuthVo, Integer> getBaseDao() {
        return systemAuthDao;
    }

    public List<SystemAuthVo> listAuth(SystemAuth systemAuth) {
        return systemAuthDao.listAuth(systemAuth);
    }

}